import { cardCache, toast } from 'nc-lightapp-front';
import config from '../config';
const { setDefData } = cardCache;

export default function (props, key, text, record, index) {
    switch (key) {
        case 'table_add':
            props.cardTable.addRow(config.bodycode, -1, true);
            break;

        case 'table_delete':
            props.cardTable.delRowsByIndex(config.bodycode, index);
            break;
        default:
            break;
    }
}
